.example-select {
  display: flex;
  position: relative;
  align-items: center;
  color: var(--mat-sys-on-primary);
  font-size: var(--mat-sys-label-large);
  background-color: var(--mat-sys-primary);
  border-radius: var(--mat-sys-corner-extra-large);
}

.example-select:has([ngComboboxInput][aria-disabled='true']) {
  opacity: 0.6;
  cursor: default;
}

.example-select:hover {
  background-color: color-mix(in srgb, var(--mat-sys-primary) 90%, transparent);
}

[ngComboboxInput] {
  opacity: 0;
  cursor: pointer;
  padding: 0 3rem;
  height: 3rem;
  border: none;
}

[ngCombobox]:focus-within .example-select {
  outline-offset: 2px;
  outline: 2px solid var(--mat-sys-primary);
}

.example-combobox-text {
  left: 2rem;
  position: absolute;
}

.example-arrow {
  right: 1rem;
  position: absolute;
  pointer-events: none;
  transition: transform 150ms ease-in-out;
}

[ngComboboxInput][aria-expanded='true'] ~ .example-arrow {
  transform: rotate(180deg);
}

.example-popup-container {
  width: 100%;
  padding: 0.5rem;
  margin-top: 8px;
  border-radius: var(--mat-sys-corner-large);
  background-color: var(--mat-sys-surface-container);

  max-height: 13rem;
  opacity: 1;
  visibility: visible;
  transition: max-height 150ms ease-out, visibility 0s, opacity 25ms ease-out;
}

[ngListbox] {
  gap: 4px;
  height: 100%;
  display: flex;
  overflow: auto;
  flex-direction: column;
}

[ngCombobox]:has([ngComboboxInput][aria-expanded='false']) .example-popup-container {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 150ms ease-in, visibility 0s 150ms, opacity 150ms ease-in;
}

[ngCombobox]:has([ngComboboxInput][aria-expanded='true']) [ngListbox] {
  display: flex;
}

[ngOption] {
  display: flex;
  cursor: pointer;
  align-items: center;
  padding: 0 1rem;
  min-height: 3rem;
  color: var(--mat-sys-on-surface);
  font-size: var(--mat-sys-label-large);
  border-radius: var(--mat-sys-corner-extra-large);
}

[ngOption]:hover {
  background-color: color-mix(in srgb, var(--mat-sys-on-surface) 5%, transparent);
}

[ngOption][data-active='true'] {
  background-color: color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent);
}

[ngOption][aria-selected='true'] {
  color: var(--mat-sys-primary);
  background-color: color-mix(in srgb, var(--mat-sys-primary) 10%, transparent);
}

.example-option-icon {
  padding-right: 1rem;
}

.example-option-check,
.example-option-icon {
  font-size: var(--mat-sys-label-large);
}

[ngOption]:not([aria-selected='true']) .example-option-check {
  display: none;
}

.example-option-text {
  flex: 1;
}
